from base.base import Base


class AddShoppingCartBase(Base):
    def add_shopping(self):
        return '(//android.widget.TextView[@resource-id="com.dangdang.buy2:id/add_cart_tv"])[2]'

    def select_good_type(self):
        return '//android.widget.CheckBox[@resource-id="com.dangdang.buy2:id/color_size_rb"]'

    def select_good_type_okay(self):
        return '//android.widget.TextView[@resource-id="com.dangdang.buy2:id/product_select_color_size_confirm"]'